import { Table } from 'antd';
import React from 'react'

export default function AntTable() {
    const data = [
        {
          key: '1',
          name: '胡彦斌',
          age: 32,
          address: '西湖区湖底公园1号',
        },
        {
          key: '2',
          name: '胡彦祖',
          age: 42,
          address: '西湖区湖底公园1号',
        },
      ];
      const columns = [
        {
          title: '姓名',
          dataIndex: 'name',
          key: 'name',
        },
        {
          title: '年龄',
          dataIndex: 'age',
          key: 'age',
        },
        {
          title: '住址',
          dataIndex: 'address',
          key: 'address',
        },
      ];      
  return (
   <Table
   bordered
//    pagination={false}

pagination={{
    total:100,
    showSizeChanger:true,
    showQuickJumper:true,
    showTotal(total){
        return <span>{total}</span>
    }
 
}
    
}

 
   dataSource={data} columns={columns}>

   </Table>
  )
}
